#include<stdio.h>
struct {
	char* name;
	int num;
	int age;
	char group;
	float score;
}class[] = {
	{"li ping",5,18,'c',145.0},
	{"zhang ping",4,19,'a',130.5},
	{"he fang",1,18,'a',148.5},
	{"cheng ling",2,17,'f',139.0},
	{"wang ming",3,17,'b',144.5}
};
int main() {
	int i, num_140 = 0;
	float average, sum = 0;
	for (i = 0; i <= 5; i++) {
		sum += class[i].score;
		if (class[i].score < 140)num_140++;
	}
	printf("sum=%.2f\naverage=%.2f\nnum_140=%d\n", sum, sum / 5, num_140);
		return 0;
}